moved repos init logic out of global to resource handler; made tests more robust by resetting implied resources