add gravatar size, flash and error messages tests, refactor flash div