Added gtests, compiled as library and change of structure..