Fixed #17. Wrapped inputFile options in if condition, so that this error does not arise.
Additions to test cases.