Tests

Tests added for basic funcionalities.
Coverage still limited