Restrict compilation of test/java to the :test profile.