Removed Java 7 dependency in CT tests. fixes #378.