Fixed case where last cipher in composition chain is reprcipher
Added test for preceding