Fix wrong condition in salt.New()
Fix salt tests