Fixed segfault in psplat, added addationl test features