Add more tests for user creation and improve post-creation flash handling