added tests forp3