Add autotest framework