Unit test to show validation behaviors