Adding tests for populate