Fix Behat tests for static methods.