Fix open graph service and add tests