Add tests for core of framework