Refactored requireOneModel
Added test for custom endpoint w/o filter