DRY principle put to use. Initial Commit Test.

Signed-off-by: anubhav saini <iamanubhavsaini@gmail.com>