Adds tests for InstructionDecoder

Issue: #32