Moving test methods to rake task