added AlternationTest
amended AlternationTest to force calls to toPattern