Intermittent test failure fix

A fix for issue #487. Tests for whether a permanence value is connected should always be >=. Also modified code to log random seed in case of future failures.  Related to #488 which will include more comprehensive fixes of this type.