Add SampleAnalysis sqlalchemy tests