Adding close option to new record

- Updating new record documentation with --close option
- Adding test for creating a new record with and without --close