introduce dao and server side tests, still very much wip