Changed error to be more descriptive when you are refering to a not existing key Fixed core dump in view test and changed to better error message