added method for setting status to all elements, added tests
changes based on PR comments