Fixed test, and fixed inactive scope on commandline