flake8ification
Extract InvalidInstruction into exceptions and test it