added success message method to JUnit test class