finsished simple test code