Added protection tests

Modified: src/test/ps-test.c