Add tests around unit conversion