Add some tests for SelfValidating