added a more tests: Rails association methods and field validation