p2: add p2-test, seperate syntax obj file for test and libs