added pyra test function