Added power series test functions from documentation.