tests for bug