little ~unnecessary refactor but use of resource folder for test