add literal local implementation test
optimize testing literals