Check accept type before paths

Closes #592
Separate resolve tests
Add test for accept type first
Parse accept type list in outer loop