added flash messages container, added more tests