add initial unit tests of pse module
(#516)