assertion and plugin
added attributes and fix tests