Fixed a bad test condition