Fix build issue in lab1

Signed-off-by: Junjie Mao <eternal.n08@gmail.com>
Add autotest scripts

Signed-off-by: Junjie Mao <eternal.n08@gmail.com>