move main to test