Refactor isTestPackage method.

Fixes #1017

By moving the code from Package > isTestPackage to Behaviour the class checks its behaviour in the correct environment enabling the Helios Sunit Testrunner to display them.