Test -i function.
fixes #4