Added tests for InputFactory.