clian up code for test stack