Added tests fixed small bugs