address unit number generation
added tests for unit method