Added sample tests and rake task.