added test for sending invalid python code