preparing for the list command functionality.

test cases updated.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>