Remove useless springframework dependency in test code