Enables tests back. Adds Tests for Java API