A more reliable test, check against expected keys, rather than received