Added logging and some metadata tests for figuring out how to go forward