Improving bug test