Add tests for the inplace flag on in_units_of