Adding tests for custom belongsToMany keys