refactored sequence
fixed sequencegroup tests