Add unit tests
Merge branch 'master', remote-tracking branch 'origin'