adding init function along with minimal selector engine; adding first test case