Britney Spears spent the night partying in Los Angeles. That is after she heard the court order to undergo random drug and alcohol tests as part of her custody battle. She was having fun with friends, including Canadian singer Avril Lavigne, People.com reports. Before that she went to the Beverly Hills Police Department because a group of photographers were following her; or so she says. There was no action taken. A clubgoer told People that…