add assertResponsesCount.
Fix tests framework.