added Timer based tests for Java