Added test framework.
Merge branch 'tests' into develop