[TEST] - rewrite test GetResourceTest

different approaches are tested

@rmansoor have a look, please.