adding JunitTest and assertions; expanding scope and multi-threading