Added more assertions to cover invalid file paths and only a couple None function arguement scenarios.