Added test framework for CPU backend