added separator validation and more tests