adding unit test for presence feature