Nit: add a comment what this is testing, it's not clear what all this is doing