Add test module from oslo-incubator

This code was pulled from oslo-incubator at commit
a3302722c45f77ea923c6c289b6c10ef58193503.

Change-Id: I9552f3681f09427840e9a524ff5e3d2312193a14