#1 JUnit tests of state services
 - finished implementing the tests