add test mode switch in rake