Fixed tests JS