[WIP] add tests for test.support

Fix #718. Also improves support for signed zeros.
Based on #783, which should be merged before.