taskID default set to -1. JUnit test edited