Test for pi() function