add main.py for tests; added test with pool