add first unit tests for the catafalque logic