Fix tests. Replace '==' in boolean expressions by 'is'
Add is_alive_con function and tests for it