code clean bb test lib