Ensure input test implementation is aligned to current input API.
Separate mock library from source.
Put mocks to directory structure mimicking project structure.