Adding more tests for metadata updates in file session, and also fixing some minor issues.