I've made the method internal static and added a test case to it. Will send a pull request.