bug in testing inputs fixed