FINALLY.. working readResource and tests