Added unit tests for ptafuncs quantization stuff