Added error code 002-9001
Added tests for testing whether engine processes @ValidWhile correctly