Using setActivated instead of setDeactivated (deprecated).
init-tests script fixed.