Add test for CapsuleManagerTrait and fixes a typo.

Signed-off-by: crynobone <crynobone@gmail.com>