koa: tests and api refactor
koa post: finish first draft