favoring undefined instead of null on elastic service
first batch of tests for elastic service