interface test code