added some tests for validators and factories