intersection tests working