better result check in test suite