testing behaviour or testing code?