Testing ready() function