Split tests into java, scala and bytecode directories.