test and main