added tests for flashes