Feature/tests

Add unit tests