Found some errors in pa unit testing