Added unit tests for units and param getters

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>