Added generic set tests and set inptu check