[Minor] fixed failing tests on Java 1.7 due to expected execution