SERVER-14652 update tests for localhost exception

Closes #721

Signed-off-by: Benety Goh <benety@mongodb.com>