fix map tests
simplify API used for web server like express
focus on operations for writes