added: unit tests for define resource helpers