Added more tests, renamed `in` validator to `whitelist` + improved current implementation