Adds parameters to _getRealPath for testing