compositeResolver: add tests and fix bug in custom resolution