Added tests for exclude by filepath