Changed a type in controlpawn and wrote tests for it