create invoice class, searching and tests