added tests for server api
fix(server): updated api methods