MDL-43635: Add PHPUnit test for custom context changes