Fix broken test and assignment

default_os wasn't set before, and the test was using = instead of ==.