spring boot refactor test classes