Testing that a module implements a given behaviour

I know this is an ancient topic but due to interest in the original problem I think it’d be worth it if you share how did you solve it – especially with your link now being dead.