fixed test java exception