Make typing more precise in test and remove unneeded explicit NotImplementedError