tests: added entity serialize test