Add test rake task except in production.