test should show that *attributes* get encoded no matter what flag was passed to createTagFromArray