Added unit tests for input and output classes.