Renames duplicate method on TestSnippetRegistering

Renames duplicate method on TestSnippetRegistering from test_register_function to test_register_decorator