Add test cases in Java and fix the bug for second and minute
Add tests in EE