fix return value and test it
create test server