update tests, fix issues with sequence