testPage does not redirect, calls rest-api via javascript