Add test for BrokenElement and TraceSpace functionality

Requires the bunch of PRs I just made.