Added tests for resources and refactored plugin builder class into a number of smaller testable methods