Update test for resultConstraint
Update test for occurenceConstraint
Add test for resourceConstraint
Use mock method from MockeryTestCase
Remove test for getQuery method