Fixed unit tests with invalid metadata versions