Rakefile needs to exit correctly from tests