Tests for the CreateContext class