Piface test code