test(matchers): update toThrow matcher