Added unittests and added them to CI