Plus a logic mistake in test01's ifelse...