added test method for sequence