Fix: Return value of checkFlags
Minor Change: isMyFlag > isNotMyFlag
Added: Stub of a test function for checkFlags