Errors in testing fixed