Testing divergence

few basic tests were added with good coverage