add some tests
detect error code 301