Test cases by john-resig