automate test with assert