refactored ensemble tests