Better comparison between expected and actual output