Adds and updates test cases