Adjust build system and tests to work with scala 2.11
fixed tests in scala 2.11