added tests for restrict and protect methods.