Prepare stack.java for testing