Fixed support for unit tests in JavaSE projects.