testing external behaviour