Add some tests and fixes for coinjoin module.