test for resource size retrieving