implement test logic