Get module endpoints. Use main function instead of test runner