making sure metadata will be initialized correctly
adding new test case for metadata handling