Corrects type of assertion used in tests.