Added remove functionality for removing a message from the queue
Added test for throwing an InvalidMessageException when adding an
invalid message to the instruction queue