fix testing code
Added startup example