added extend() and extension() to serviceProvider
updated tests for the serviceProvider changes