Removed unnecessary test
(cherry picked from commit fcfb178)