add unit test and edit bootstrap