cabinet: Add initial tests for Extract.