Force test duration to int