Made the removeBehavior test case work as well.

Ugly at the moment though.
Improved comments for endpoint unit tests.
Failing testcase.

Checking that an added behavior is running in its own thread.
Added sleep functions to the Behavior Api.
Added another way to run the behavior.
Test that a behavior is stopped when removed.
Added behavior now run in its own thread.
Implemented termination of behaviors.
HLint fixes (removed parentheses).