preparing test routine