fix condition

Change-Id: Id1d21b09279470479dac49c91f30c20d41484396
Signed-off-by: Kunal Shroff <shroffk@bnl.gov>
Add basic test to check unit conversion, check conversion result

Change-Id: I50d6bb9f67d64d4a43f11d495cd361bc9a313af5
Signed-off-by: Kunal Shroff <shroffk@bnl.gov>