tests for bugfix