[ADD] Improved XQUnit testing. Closes #903