BUG-866: improved test resource loading