Added tests.
Merge branch 'test_cases' into develop