I don't like that you're testing an internal method.

If you'd like to test this thoroughly, I would move this function into its own module and test that.