Added B() unittest.
Added better P() unittest.