Added mising tests for Java API methods in the State class.