refactor interface test