add unit tests to resource