fix __main__ import in tests