VHDL codegen tests

Should improve test coverage significantly.