Use code objects in long tests

Signed-off-by: Daniel Francis <francis@sugarlabs.org>