Documents associations and scopes testing

Only about 1/3 of the way through adding tests.  Have got the
associations and scopes working & tested though.