add compare to test assertion