Writing tests for Core