Testing

Tests for all functions. 100% code coverage.