Additional Rspec tests for flash messages, gravatar options and refactoring