Adding test for valve

Adding a test to verify valve when the given payload has an extra field.