I feel very bad and cheated. Initially, they sent me a test link to appear in it and I did. It went better and I am sure that it was 36-37 were correct out of 40.
Still, they sent me an email that they moved with another candidate.
IF YOU DON'T WANT TO PROCEED WITH THE INTERVIEW THEN DON'T ASK THE CANDIDATE TO TAKE THE TEST AND WASTE THEIR TIME. STOP RAISING FALSE HOPE AND EXPECTATIONS.