updated tests for java stack