fixed test issue with java 7