allow to pass in scope when unwrapping gems to resources
not only log error in the test scripts but also fail the mojo run - fixed #52