add unit tests for xunit extension, minor fixes found from unit testing