Bug fixes in Beagle* unit tests and BeagleComposite class.