#249 REST API

Fix tests