add tests for content, use exceptions for provision error handling