add simple server and tests