Added unit test validating validating functionality