Move testing task to rakefile