Feature/test api

Implementation of more or less basic test apis.