Add some user validation tests, fixes issue #237