Adds InputJournal unit tests and refactors input type codes