By adding unit tests. There currently are zero unit testing. We won't be able to push that code upstream without at least some unit testing.