move test to junit test