Replaced another use of element(2,Pid). Added some tests with somepid instead {local,name} as supervisor reference