Consolidate test task  in rakefile