unit tests for pov.c