Add constant.spec and its test, constant.spec which also shows how to access a provider for testing