adding poc from plunker
updated tests