fixed "add" and "compose" test cases