implemented a test for sequence.