Is it wrong to not be happy for my girlfriend?
Why aren't you happy for your girlfriend?
She failed a big test for her class at school.
I'm sure your disappointed with your girlfriend for failing her test. It's understandable to be upset with someone who underperforms. Talk with her to see why she failed and how she can improve her performance.
I want her to notice how hard she has been working and that she is an inspiration to people who are behind her.
It's good that your proud of her efforts, so express those feelings to her. You may not be happy right now with her results, but don't let her give up and be there to support her while she bounces back.