[Tests] move some tests from the app to the utils; remove server related app tests;
cleanup code