Merge "tests: Add PHPUnit tests for methods in MagicWordFactory::class"