Add tests. Add static call for setting validations.