added tests and proper rakefile stuufs