added tests for interceptor