Moved resource validation logic to registration
Link declaration tests work