updated the testing functions