Added tests to generator
added endpoint_spec