fix errors in server tests