Refactoring structure for example tests

Signed-off-by: Ben Jackman <ben@jackman.biz>