added tests for error/success messages