Added tests for user creation and flash messages