condensed test code