Function for testing pset