I have two small terriers myself (Australian Terriers) and can tell you that they can indeed live with cats in peace, but you/roommate need to be in control. It's necessary to teach the dog that the cat cannot be chased, because it's too easy for accidents to happen especially when the dog's prey drive kicks in. This is much easier to do when you start teaching the puppy the minute s/he arrives. Terriers are usually very smart, so training them is challenging to the owner as well, as they will not do anything to "please" the owner (although I'm not sure many dogs of any breed will do something for nothing). Because they're smart, they will learn easily once *you* learn what the best way to train them is. I recommend looking into clicker training, it's been absolutely wonderful with my two terrors.
It's good to start teaching the puppy to be calm when the cat's around, to focus the pup's attention on something other than the cat, and to reward the puppy for behaving the way you want him/her to behave. It's good to figure out what exactly this is beforehand, so you don't confuse the pup by wanting different things at different times and so that you and your roommate both agree on what to teach the pup. 8 weeks is not too young to start teaching the pup appropriate behavior, actually it's the best of times, just don't demand too much too soon, puppies can't really concentrate for more than a few minutes at a time. But several short, happy training sessions a day are excellent.
Anyhow, I'm sure you'll manage it just fine. When my first dog arrived, my cat was about 2,5 yrs old, and had never even seen a dog before. The moment she saw the puppy, she hissed and puffed up (if you know what I mean) and stayed in high places the next few days, cautiously watching the pup and getting a bit closer every day. The puppy didn't really even pay attention to the cat at this point. When the cat had the courage, she came to meet the pup, which is when the pup got enormously interested in the cat, of course. I let them sniff and get to know each other, and all went well. Of course, my cat is a temperamental one, and fully capable of swatting the dog when he's out of line.
I didn't have to do much, training the dog not to chase has been the biggest challenge, as it is their nature to chase moving furry creatures. But patience and positive training methods can work wonders! Good luck.