Testing that options are removed correctly