fix makefile for test, add restrictPage