Add unit tests

Merged Wang Yuyang requested to merge ADD-UnitTests into master

Merge request reports