fixed silly mistake on .test() not targeting the correct value