extracted some testcases for scrutiny
fixed sprite demo extract