Adds tests for Input classes.
Fix some code standard issues.
Fixes serialize and unserialize tests.
Corrects type of assertion used in tests.
Merge pull request #12 from Achal-Aggarwal/unit-tests

Adds some tests.