Added list function in cluster_test

Signed-off-by: Shashank Sahni <shredder12@gmail.com>