Add test for prepare/check/idle