Added tests for formatDMS