funcitonal tests written in unittest