Added test for constructor and added function for setting bits when passed indices