Restore test, use fixture correctly

Signed-off-by: Julien Danjou <julien@danjou.info>