Spring dependency remove

Removed spring dependency,
fixed jUnit test
compilation warning fixed.