Tests for #339

This merges #339 and adds some tests for reordering InlinePanels on the edit page