Add projectInheritanceTest and refactor code * Construct new Action with configFactory. Change-Id: I464492d7f397d82bd743aaf1f6623737bff19947