add rspec test and relationships to models.