Fixed test so that it runs

Reformated stuff and made it run

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>