Fixed select item by id
Added tests for select method. Moved test appContext