added test to check if valid works with omit