adds length constraints
adds relationship tests
adds relationship tests