Added tests for file expansion on write file
Return expanded path
Add empty lines between contexts