Add test with high-bit set
Create frameworks, modernise some stuff