test a value is what we expect it to be.