Recently I've implmented a way to get only specific parts from log API, but the test and implementation were wrong. This commit fixes that.