Fixed assert test before refactor

Signed-off-by: Frode Marton Meling <fm@saltship.com>