simplified test code