main and test file