visible units test + bugfix