add method assertion feature