rearranged unit tests, added compiler flags