Fixed tests and Scala 2.9 build, added licence