fix(testing): throw an exception if use().as() called after inject()