Add tests for MOVED redirections and fixed one bug in the pipeline implementation of MOVED