added test function, only works locally
removed typo