Added seqrun API test. Fixed seqrun bug.