Refactor code for writing test

Remove interactivity in projectile-get-other-files. The function now
only returns candidates based on input. It is now a pure function that
accepts the same input and return the same output.
Add a test case for projectile-get-other-files