updated log message
turned test into a JUnit4 test