Resource unit test