Move unittest outside of class definition

Needed since class is template class and will not otherwise be compiled