Added some tests for resources handling