clearing rake tasks at test init and making more specific checks