extact assert behaviors into shared tests