Added some unit tests and documentation for BzBug model