added spinner and test