Fix relation.unsourced.empty? not working. Added rails 4.0 requirement. Expanded test suite.