tests/test_hypermap: refactor into a Constellation class