added spec to test Null errors