added tests for eg endpoint
added docs