test for checking the exception message when an expected value is not correct.
moved test to another new test class