Add more tests, and fix mock cdmi client with respect to listing
metadata.