Added test for bugfixes.