[common] created simple optional class + added tests for ReadFile function