add test for custom context
better spec config, add new test