implemented remaining tests that were missing. fixed small bugs within the render function