test13: fix checks of prev/after

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>