refactored code to be source compatible with Scala 2.10 and added support for JUnit so that tests are discoverable by Gradle

This will enable norbert to upgrade to Scala 2.10