TESTING HOOKS