Modification of Factory unit test.

- add test for simple class (without template parameters)
- add prefix 'factory_' to header files with testing classes of factory
Clean code of Input::Factory.

- add documentation
- remove unused part of code