replace TAB with spaces
removed needless test case
create new API which uses Map to specify bug counts.