fix tests and add inflector test