get_all: return int in scalar context + few tests