Add tests for important logic

Ghost User requested to merge am-tests into master

Merge request reports