PIM-1905 Fix restoring grid filter state and improve behat scenario to prevent regression