change test code style to junit4