finish test cases and experiment code