A test for randomly sampling using duration observations