project restructured into lib and test with rakefile