Fix select required validator, fixes #5.
Make select use container attributes, fixes #4.
Refactor and DRY tests.