Converted existing sanity tests into unittest