Added tests for ServerAPI