Adding lean() and tests for exec() to Query