Adding test helper to test private methods