Adding implementation for resources and tests