added tests for api calls

Shouldn't this be equivalent? (http://www.scala-lang.org/api/current/index.html#scala.Option)