Add test for w,b,e (fails).
Some fixes for w and b at line ends.