setup environment & two simple cases