Test rewritten by data driven approach