Unit tests for get.js, improvement of error message