adding a new (failing) test to check for extension object encoding
fixing the handling of extension object, relates to #141