private test code.