'should raise an error when second argument is non hash object' is better?