Add tests for Nerdery\Plugin\Factory\Factory