add tests for getPictures