unit tests and function for piaac mean