feat(hooks): add tests for resource aware method and class before/after hooks
feat(hooks): add "resource awareness" to class/method before/after hooks