changed main.cu to non-test mode