fixed test update bugs & tests