update unit test rake task

update formatting
fix success check