some functional lifting for unit tests