added a way of testing