Unit tests for file creating

Added Unit tests for above below left and right. the diagonals simply
call combinations of these so I did not bother with additional tests