added tests for flash and user creation errors