Fix race condition in server test

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotallabs.com>