Fix errors in margin tests: margins should be ignored with no-extent shapes