updated rakefile
implemented tests