Unit tests for new code upto mid term.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>