Added google-tests & tests for few functions