implementing testing
clean up testing implementation and add a naive test