Added unit-test for correct validation order