add test for resource nesting and make resource not found error more descriptive
fix some config