many more tests implemented. various bugs fixed in sequence functions; search added to sequence functions