rspec tests and flash notice implemented