add module controller test cases; fix next module not exists logic bug.