Removed duplicate publishtest function