added working unit test
just one test for now, need to make the test more reliable
fixed test to run correctly