Added EGM support files
Added EGM test function