Fixed unit tests with Java 7 and disabled the dereferenicng one