Revised the test to be more exact, based on @pelson's suggestions.