Java Test Project: fixed some bugs.