Unit test for resources