Modified BehaviorResourceTest and BehaviorDomainResourceTest to achieve
better code coverage with tests.