Added tests

Added test and a new target in SUBDIRS for tests using googletest framework.