More dynamic way of testing