wrote some tests to find Bug in BPR
fixed bug