testing of pc fit function