Unit tests for Subject

- Fixes #46
Fixed a bug in getMap
Unit tests for Subject

- Fixes #46
Merge branch 'feature/develop_0.5.0' into develop