test and fix client channel states and promise execution
better test iteration
[minor] linting/newline fixes