Added gem ancestry
Added loans test
Scopes cleanup