Fixed multiple issues with register function being availible non-locally, both the functions and test were wrong, joy.