added test to rest interface