Implemented correct handling of attributes in deparse()
Moved stats tests into stats module