Moved check func to central testing tools