improved tester script

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>