Tests

Unit tests for the core functionality