Try setting Rake::TestTask#test_files instead of #pattern