server impl for testing