Unit tests for analysis