Added build profile for tests, so tests only build and run in java 1.7 or higher