Updated unit tests a bit

Fixed bug with SQLServerGenerator where many to many and many to one
items were attempting to insert into the object's table.