updated test routine