ticket3: added tests for validation