Add missing test case for writing unknown attributes