bugs and tests