Refactors and separates the Capsule and CapsuleMapper tests