Refactored the bar object tests. Added extra test