Rails many-to-many relationship test, see http://stackoverflow.com/a/26928111