fixed some annoying crashes in the Test GUI

Signed-off-by: Swizzy <swizzy@hotmail.co.uk>