* Wrote some tests

Signed-off-by: Mahadevan Sreenivasan <mahadevan_sv@yahoo.com>