add short and long test mode