added TestingMain for testing purposes