fixes variable and completes rspec for observer