Small fix. Solve part of #53
Unit tests for analysis.core module. Close #53