refactor junit_test