Fix whitelist to be modifiable from behaviors to work with validate.
Add doc block
Simplify test.
Merge pull request #1708 from dereuromark/2.5-behavior-whitelist

Fix whitelist to be modifiable from behaviors to work with validate.