Fixed bug in wrong test condition.