Added unit tests for unit conversion