Separate test logic