adding tests and fixing the extents validation regex