(fix) Add tests for queue feature